<?php

/**
 * @Author: wuchenge
 * @Date:   2022-04-26 14:49:47
 * @Email: ligui0506@126.com
 * @Descript: 文章控制路由
 */

Route::middleware([
    'admin',
])
    ->group(function () {
        // 添加
        Route::post('article/add', 'ArticleController@add')->name('article.add');
        // 编辑
        Route::post('article/modify', 'ArticleController@modify')->name('article.modify');
        // 详情
        Route::get('article/detail/{id}', 'ArticleController@detail')->name('article.detail')->where('id', '[0-9]+');
        // 列表
        Route::get('article/lists', 'ArticleController@lists')->name('article.lists');
        Route::post('article/del', 'ArticleController@del')->name('article.del');
    });
